import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class fileInputstreamDemo1 {
    public static void main(String[] args) throws IOException {


        InputStream is = new FileInputStream("F:\\000java_document\\02Java-next\\fileInputStreamDemo1\\src\\main\\java\\test.txt");

//        int b1 = is.read();
//        System.out.println((char)b1);
//
//        int b2 = is.read();
//        System.out.println((char)b2);
//
//        int b3 = is.read();
//        System.out.println((char)b3);
//
//        int b4 = is.read();
//        System.out.println(b4);

        int b;
        while ((b=is.read())!=-1){
            System.out.println((char)b);
        }
    }
}
